#include <iostream>
#include <string>
using namespace std;

int main(int argc, char const *argv[])
{
    //申请一个整形内存地址
    int *ptr = new int;
    cout << "Please enter an interger" << endl;
    cin >> *ptr;
    cout << "Memory address is" << ptr << endl;
    cout << *ptr;
    delete ptr;
    return 0;
}
